﻿<%@ Control Language="C#" AutoEventWireup="false" CodeBehind="ArchiveViewControl.ascx.cs"
    Inherits="ud_Article.UI.ArchiveViewControl" %>
<%@ Register TagPrefix="blog" TagName="TagList" Src="~/Article/Controls/CategoryListControl.ascx" %>
<%@ Register TagPrefix="blog" TagName="Archives" Src="~/Article/Controls/ArchiveListControl.ascx" %>
<%@ Register TagPrefix="blog" TagName="FeedLinks" Src="~/Article/Controls/FeedLinksControl.ascx" %>
<%@ Register TagPrefix="blog" TagName="StatsControl" Src="~/Article/Controls/StatsControl.ascx" %>
<asp:Panel ID="pnlBlog" runat="server" CssClass="blogwrapper">
    <div class="modulecontent">
        <fieldset>
            <legend><span class="blogtitle">
                <asp:Label ID="litHeader" runat="server" Visible="True" /></span> </legend>
            <asp:Panel ID="divNav" runat="server" CssClass="blognavright" SkinID="plain">
                <blog:FeedLinks ID="Feeds" runat="server" />
                <asp:Panel ID="pnlStatistics" runat="server">
                    <blog:StatsControl ID="stats" runat="server" />
                </asp:Panel>
                <asp:Panel ID="pnlCategories" runat="server">
                    <blog:TagList ID="tags" runat="server" />
                </asp:Panel>
                <asp:Panel ID="pnlArchives" runat="server">
                    <blog:Archives ID="archive" runat="server" />
                </asp:Panel>
            </asp:Panel>
            <asp:Panel ID="divblog" runat="server" CssClass="blogcenter-rightnav" SkinID="plain">
                <asp:Repeater ID="dlArchives" runat="server" EnableViewState="False">
                    <ItemTemplate>
                        <div class="blogtitle">
                            <asp:HyperLink ID="Title" runat="server" SkinID="plain" Text='<%# Server.HtmlEncode(DataBinder.Eval(Container.DataItem,"Heading").ToString()) %>' ToolTip='<%# Server.HtmlEncode(DataBinder.Eval(Container.DataItem,"Heading").ToString()) %>'
                                NavigateUrl='<%# FormatBlogUrl(DataBinder.Eval(Container.DataItem,"ItemUrl").ToString(), Convert.ToInt32(DataBinder.Eval(Container.DataItem,"ItemID"))) %>'>
                            </asp:HyperLink>&#160;
                            <%# "(" + FormatBlogDate(Convert.ToDateTime(Eval("StartDate"))) + ")" %>
                            <asp:HyperLink ID="editLink" runat="server" EnableViewState="false" Text="<%# EditLinkText %>"
                                ToolTip="<%# EditLinkTooltip %>" ImageUrl='<%# EditLinkImageUrl %>' NavigateUrl='<%# this.SiteRoot + "/Article/EditPost.aspx?pageid=" + PageId.ToString() + "&amp;ItemID=" + DataBinder.Eval(Container.DataItem,"ItemID") + "&amp;mid=" + ModuleId.ToString() %>'
                                Visible="<%# IsEditable %>" CssClass="ModuleEditLink" />
                        </div>
                    </ItemTemplate>
                </asp:Repeater>
            </asp:Panel>
            <asp:Label ID="lblCopyright" runat="server" CssClass="txtcopyright"></asp:Label>
        </fieldset>
    </div>
</asp:Panel>
